<?php

namespace App\Kuafu\Product\Enum;

use App\Kuafu\Base\Enum\BaseCodeEnum;

class CodeEnum extends BaseCodeEnum
{
    // 单品
    public const PRODUCT_TYPE_SINGLE = 0;
    // 套餐
    public const PRODUCT_TYPE_PACKAGE = 1;

    const TYPE_PRODUCT_TYPE_TEXT = [
        self::PRODUCT_TYPE_SINGLE  => '单品',
        self::PRODUCT_TYPE_PACKAGE => '套餐'
    ];

    public const PRODUCT_SHOW_POS    = 1;
    public const PRODUCT_SHOW_APPLET = 2;

    const CLIENT_MAP = [
        self::PRODUCT_SHOW_POS    => "pos端",
        self::PRODUCT_SHOW_APPLET => "小程序端"
    ];

    const KIND_NORMAL   = 1;
    const KIND_CUSTOMER = 2;
    const KIND_MAP      = [
        self::KIND_NORMAL   => "标准菜品",
        self::KIND_CUSTOMER => "自定义"
    ];

    const HOT_YES = 1;
    const HOT_NO  = 0;
    const HOT_MAP = [
        self::HOT_YES => "热门",
        self::HOT_NO  => "非热门"
    ];

    const RECOMMEND_YES = 1;
    const RECOMMEND_NO  = 0;
    const RECOMMEND_MAP = [
        self::RECOMMEND_YES => "推荐",
        self::RECOMMEND_NO  => "不推荐"
    ];


}
